-module(mod_login).

-export([start_link/1]).
%% gen_mod API
-export([start/1, stop/0]).
%% gen_server API
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
     terminate/2, code_change/3]).

start_link(Opts) ->
	gen_server:start_link({local, ?MODULE}, ?MODULE, Opts, []).

%% gen_mod API
start(Opts) ->
	ChildSpec = {?MODULE,
		{?MODULE, start_link, Opts},
		transient,
		1000,
		worker,
		[?MODULE]},
	supervisor:start_child(ejabberd_sup, ChildSpec).

stop() ->
	gen_server:call()
	ok.

%% gen_server API
init(Opts) ->
	io:format(),
	ok.

handle_call/3
handle_cast/2
handle_info/2,
terminate/2
code_change/3.
